/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Chat;

import java.util.Vector;

/**
 *
 * @author Mr Bao
 */
public class Group {

    public Vector nicks = new Vector();
    public String nameGroup;
    public boolean isExpanded = true;

    public int GetOnline() {
        int count = 0;
        Nick nick;
        for (int i = 0; i < nicks.size(); i++) {
            nick = (Nick) nicks.elementAt(i);
            if (nick.status != 9 && nick.status != 0 && nick.status != 12) {
                count++;
            }
        }
        return count;
    }
}
